package 周六;

import com.sun.xml.internal.ws.addressing.WsaActionUtil;

public class ObjectDemo {
    public static void main(String[] args) {
        String str="sidjaiodjio@qq.com";
        boolean a=str.matches("[A-Za-z0-9]+@[A-Za-z0-9]+\\.[a-zA-Z]+");
        if (a){
            System.out.println("合法");
        }else {
            System.out.println("不合法");
        }







    }
}
